package practice;

public class Chick extends Animal{
    char cha;
    //第一遍
    void eat() {
        System.out.println("小鸡"+name+"正在吃小米！");
    }
    void layEggs() {
        System.out.println("小鸡"+name+"正在下蛋！");
    }

    Chick(String name,int age,String color) {
        super(name,age,color);
    }

    Chick() {

    }

    public static void main(String[] args) {
        int[] a = new int[1];
        char[] b = new char[1];
        String[] c = new String[1];

        int d = 0;
        char e =(char)d;
        System.out.println(e);

        System.out.println(a[0]);
        System.out.println(b[0]);
        System.out.println(c[0]);

        Chick[] chick = new Chick[1];  //只写这一步  输出不了
        chick[0] = new Chick();
        System.out.println((int)(chick[0].cha));
        System.out.println(chick[0].name);
        System.out.println(chick[0].age);


        long a1 = 10;
        int b1 = 2147483647;
        b1 += a1;
        System.out.println(Integer.MAX_VALUE);
        System.out.println(b1);
//        Chick chick = new Chick();
//        System.out.println(chick.name);
//        System.out.println(chick.cha);
//        System.out.println(chick.age);
//        int a = '0';
//        char b = '0';
//        System.out.println();

    }

    //第二遍
//    void eat() {
//        System.out.println("鸡鸡"+name+"正在吃小米，别打扰！");
//    }
//    void layEggs() {
//        System.out.println("鸡鸡"+name+"正在下蛋，别打扰！");
//    }
//
//    Chick(String name,int age,String color) {
//        super(name,age,color);
//    }
}
